import request from "@/utils/request";

//分类列表
export function list(query) {
    return request({
        url: '/admin/info/ArticleCategory/list',
        method: 'post',
        data: query
    })
}

//添加分类
export function add(query) {
    return request({
        url: '/admin/info/ArticleCategory/add',
        method: 'post',
        data: query
    })
}

//删除分类
export function del(query) {
    return request({
        url: '/admin/info/ArticleCategory/del',
        method: 'post',
        data: query
    })
}

//编辑分类
export function edit(query) {
    return request({
        url: '/admin/info/ArticleCategory/edit',
        method: 'post',
        data: query
    })
}

//所有分类
export function getAll(query) {
    return request({
        url: '/admin/info/ArticleCategory/getAll',
        method: 'post',
        data: query
    })
}